package
{
	import controller.StartBoardCommand;
	import controller.StartupCommand;
	
	import org.puremvc.as3.interfaces.IFacade;
	import org.puremvc.as3.patterns.facade.Facade;
	
	public class BoardFacade extends Facade implements IFacade
	{
		public static const STARTUP:String = "startup";
		public static const CONNECTION_FAILED:String = "connection failed";
		public static const START_BOARD:String = "StartBoard";
		
		public static const LIGHT_SIDE:String = "Light Side";
		public static const DARK_SIDE:String = "Dark Side";
		
		public static const DEBUG:String = "debug";
		
		public static function getInstance():BoardFacade{
			if (instance == null) instance = new BoardFacade();
			return instance as BoardFacade;
		}
		
		override protected function initializeController():void{
			super.initializeController();
			registerCommand(BoardFacade.STARTUP, StartupCommand);
			registerCommand(BoardFacade.START_BOARD, StartBoardCommand);
		}
		
		public function startup(app:stratego):void{
			sendNotification(BoardFacade.STARTUP, app);
		}

	}
}